$OpenBSD: patch-avidemux_ADM_videoFilter_ADM_vidResampleFPS_cpp,v 1.2 2012/08/20 11:51:00 pascal Exp $
--- avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp.orig	Fri Aug 10 18:38:45 2012
+++ avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp	Fri Aug 10 18:39:11 2012
@@ -171,7 +171,7 @@ uint8_t ADMVideoResampleFPS::getCoupledConf( CONFcoupl
                 CSET(use_linear);
                 return 1;
 }
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64))
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && !defined(__PIC__)
 static uint64_t low asm(MANGLE(low)), high asm(MANGLE(high));
 static void blendMMX(uint8_t *src, uint8_t *src2, uint8_t *dst, uint8_t alpha, uint8_t beta,uint32_t count)
 {
@@ -319,7 +319,7 @@ uint8_t ADMVideoResampleFPS::getFrameNumberNoAlloc(uin
         
       count = page;
 
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64))
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && !defined(__PIC__)
         if(CpuCaps::hasMMX())
                 blendMMX(in1,in2,out,lowweight,highweight,(count*3)>>1);
         else
